Skip to content

ci: stage manual v1.3 queue and pinned correction lineage - #100

Merged
brettheap merged 4 commits into
mainfrom
014-v13-manual-delivery
Nov 15, 2026
Merged

brettheap merged 4 commits into
mainfrom
014-v13-manual-delivery

Conversation

@brettheap

@brettheap brettheap commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Paired spec: opensoft/openRepoTools-spec#66 (canonical change stage-v13-manual-delivery). Exact source head436e2dd12c6070c882aac2730f4b9a207cfbda11, basef3576b95a2d44913ee56c6834a1de141707ed7c6.

  • Add fifth manual queue openrepotools-sql-register-v13: writer-restricted entry, at most2members, app-qualified fast/delivery entry, queue protection injection and complete batch-heavy merge gate. Existing4queues retain the same parsed digest. No automatic entry, retry or failure split.
  • Optional trusted source.commits pins1–3unique full SHAs ending at registered head. Verify every exact single-parent hop and cumulative scoped diff fromP01; reject temporary off-scope history, unpinned fixes, reordered/duplicate/overlong/merge histories. Observer and delivery share validation; observation output remains non-authoritative.
  • Keep actual v1.3 flag FALSE, existing P03/P05 bindings, foundation freeze, all CI jobs/commands, coverage baseline and provider pin unchanged. Update shared Claude/Codex reference/runbook. No owner PR edited or queued.

Validation

Canonical isolated tests/run.sh selector:
ci_v13_delivery or ci_delivery or ci_cutover or full_ci_coverage_parity or v13_shadow or ci_shadow or manual_mergify_queue

Final846passed,4951deselected,zero skips,204.90s. Strict OpenSpec/diff checks pass. Local root plus9specialist panel clean at exact code head. Earlier broad run exposed old blanket ban on the scope name in Mergify config (845passed1failed); final regression explicitly tests observer-output nonconsumption while allowing disabled queue intent. An initial collection-only OSError12 was retried without restarting/changing bench limits.

Scope and acceptance

Brett's staged approval permits normal checked source/config merges, then owner-consented canaries. This PR is DISABLED SOURCE only. Full ordinary CI and full reusable qualification must pass on latest head, with genuine exact-head Codex review. Source/local/CI/main/live gates are distinct.

Owners' P02/P03 full-CI run1 proceeds separately; do not hold or take over those PRs. P05's stale head is not enabled. Future canary requires fresh owner-selected exact heads, review/task confirmation and unchanged qualified foundation. No bypass, repository settings/app access, paid upgrade, release workflow/tag, installed tool, assembly/provider pin or shared-checkout refresh. Preserve lanes1–5.

Coordination: opensoft/openRepoTools#165 comment6895925066. Not a live canary, queue command or release receipt.

Summary by Sourcery

Stage a disabled manual v1.3 delivery path with bounded queue admission, exact source-lineage validation, and heavy-CI protection without enabling delivery or altering existing CI lanes.

New Features:

  • Stage a disabled, writer-restricted manual v1.3 SQL registration queue with bounded two-member batching and complete heavy-CI merge protection.

Bug Fixes:

  • Validate optional v1.3 source commit lineages as exact, bounded, single-parent histories with cumulative scope checks, rejecting unsafe or unpinned revisions.

Enhancements:

  • Keep observer output non-authoritative and preserve existing queues, full-CI behavior, delivery flags, and foundation protections while separating preliminary queue entry from trusted qualification.

CI:

  • Add coverage for manual queue eligibility and heavy-gate refusal scenarios, safe reviewed linear fixes, and invalid source-lineage variants.

Documentation:

  • Update v1.3 delivery, task-set, and shadow runbooks to document staged manual-queue behavior, lineage pinning, and future activation boundaries.

Tests:

  • Extend v1.3 and queue tests to verify queue configuration integrity, refusal vectors, lineage validation, and preservation of existing CI behavior.

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@sourcery-ai

sourcery-ai Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Implementation

Validate registered v1.3 source history as a bounded, exact single-parent lineage whose cumulative diffs stay within the trusted scope, and use that validation in both delivery and shadow observation.

  • .github/ci/delivery_v13.py L51-52, L55 (removed lines)
  • .github/ci/v13_shadow.py L58-64, L145-157 (+3 small edits)

Configuration

Stage the fifth manual v1.3 queue with bounded batches, restricted entry filters, queue protection injection, and a complete heavy-CI merge gate while leaving existing queues intact.

  • .mergify.yml L143-170

Documentation

Document the disabled staged delivery boundary, pinned lineage rules, manual queue entry and merge safeguards, and owner-consent requirements.

  • .github/ci/delivery-v13.md L17-22, L52-77, L82-88 (+1 small edits)

Clarify that staged queue intent does not enable qualification and that trusted linear history must be pinned rather than followed from a moving head.

  • .github/ci/task-set-delivery.md L13-15
  • .github/ci/v13-shadow.md L7-11, L53-56

Tests

Cover queue configuration and entry/merge refusals, valid pinned fix histories, unsafe lineage variants, and the distinction between staged queue intent and shadow authority.

  • tests/test_ci_pilot_queue.py L93
  • tests/test_ci_v13_delivery.py L55-69, L135-194, L203-249 (+1 small edits)
  • tests/test_v13_shadow.py L635, L640-645

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-15T15:35:47.386977Z 6aa65de Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 2 issues

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path=".mergify.yml" line_range="146-170" />
<code_context>
+  - name: openrepotools-sql-register-v13
</code_context>
<issue_to_address>
**Disabled sources enter the v1.3 queue**

When a writer requests the new queue for a PR matching its body, path, and check filters while the v1.3 delivery flag is false, mergify admits the PR based on the coarse headers, paths, and check results without consulting the false delivery policy or verifying an exact registered head. The downstream heavy gate can block merging, but queue admission has already occurred.

Keep this queue inert until separately reviewed enablement and authorization, or enforce an independent approval gate before accepting entries.
</issue_to_address>

### Comment 2
<location path=".github/ci/delivery-v13.md" line_range="54-72" />
<code_context>
+## Staged manual queue
</code_context>
<issue_to_address>
**Observer guide denies staged queue**

When an operator consults the observer guide while reviewing the staged v1.3 configuration, readers of the v1.3 observer guide are told “There is no new queue or permission to omit work,” although this change adds a separate manual queue. The queue is correctly described as not consuming observer output, but the guide gives operators an inaccurate account of the staged configuration.

Update the observer guide to say that a separate manual queue is staged but does not consume observer output or grant omission authority.
</issue_to_address>

Sourcery assessment

Approval pending. 1 finding to address first.

Blocking findings: .mergify.yml:170


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread .mergify.yml Resolved
Comment thread .github/ci/delivery-v13.md Resolved
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 436e2dd12c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@sonarqubecloud

Copy link
Copy Markdown

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: 6aa65dec69

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant